﻿using System;
using System.Data;
using System.Text;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using DAL;



namespace BLL
{
  public   class FileBiz
    {
      FileDao fileDao = new FileDao();
      public void Insert(string tb,SortedDictionary<string, string> sdList)
      {
          new BuiltSQL().InsertTable(tb, sdList);
      }
      public DataTable GetOneInfo(string nFileID)
      {
          return fileDao.GetOneInfo(nFileID);
      }
      public bool InsertOneInfo(string desn, string url, string isDir, string parentID, string account, string companyID, string departmentID, string propertie, string statu,string  extName,string  fileLen,string memo)
      {
          return fileDao.InsertOneInfo(desn, url, isDir, parentID, account, companyID, departmentID, propertie, statu, extName, fileLen,memo);
      }
      public bool UpdateOneInfo(string desn, string nFileID)
      {
           return fileDao.UpdateOneInfo( desn,  nFileID);
      }
      public bool DeleteOneInfo(string nFileID)
      { return fileDao.DeleteOneInfo( nFileID);
      }
      public DataTable GetLists()
      {
          return fileDao.GetLists();
      }
      public DataTable GetLists(string fileID)
      {
          return fileDao.GetLists(fileID);
      }
      public DataTable GetDtlLists(string fileID)
      {
          return fileDao.GetDtlLists(fileID);
      }
    }
}
